<?php
namespace app\admin\controller;

use think\Config;
use think\Controller;
class Index extends Controller
{
    public function index()
    {
        return view('main');
    }

    public function main(){
        return $this->fetch('main');
    }

    public function ClearCache(){
        $this->success("缓存清理成功");
    }

    public function Help(){
        $this->success("暂无内容");
    }
    public function About(){
        $this->success("关于好得利");
    }
    public function php(){
//        phpinfo();
        echo Config::get('hostname');
        echo "<br/>";
        echo mysqli_get_server_info(mysqli_connect("127.0.0.1","root","root","sunshine"));
        echo "<br/>";
        echo PHP_VERSION;
        echo "<br/>";
        print_r($_SERVER);
    }
}
